package com.mihoyo.service;

import com.mihoyo.basic.StoreFeignClientFallbackFactory;
import com.mihoyo.domain.Store;
import com.mihoyo.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "store-server",fallbackFactory = StoreFeignClientFallbackFactory.class)
public interface StoreService {

    @PostMapping("/store/add")
    AjaxResult addStore(@RequestBody Store store);
}
